<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>视频</title>
		<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0,minimum-scale=1.0,user-scalable=0" />
		<script type="text/javascript" src="ckplayer/ckplayer.js" charset="UTF-8"></script>
		<style type="text/css">
			body {
				margin: 0;
				padding: 0;
				font-family: "Microsoft YaHei", YaHei, "微软雅黑", SimHei, "黑体";
				font-size: 14px
			}
		</style>

	</head>

	<body>
	<div id="video" style="width:100%;height:auto;"></div>
	<script type="text/javascript">
		// var video = 'http://ugcyd.qq.com/o0730vd9ld8.p701.1.mp4';
		var video = decodeURI(getQueryVariable('url'));
		console.log(video);
        var videoObject = {
            container: '#video',//“#”代表容器的ID，“.”或“”代表容器的class
            variable: 'player',//该属性必需设置，值等于下面的new chplayer()的对象
            flashplayer:false,//如果强制使用flashplayer则设置成true
            video: video,//视频地址
            autoplay: true,
            loop:true,
            volume:0.8,
            mobileCkControls:true
        };
        var player=new ckplayer(videoObject);
        //获取url中的参数
        function getQueryVariable(variable)
        {
            var query = window.location.search.substring(1);
            var vars = query.split("&");
            for (var i=0;i<vars.length;i++) {
                var pair = vars[i].split("=");
                if(pair[0] == variable){return pair[1];}
            }
            return(false);
        }
	</script>
	</body>

</html>